GCC = /usr/bin/gcc
LIBS = -lsystemc -lstdc++ -lm

SOURCES = hello.cpp
TEST = hello
DEPENDENCIES = \
  Makefile \
  $(SOURCES)

$(TEST): %: %.cpp $(DEPENDENCIES)
	@$(GCC) $@.cpp -I ${SYSTEMC_HOME}/include/ -L${SYSTEMC_LD_LIBRARY} -o $@ $(LIBS)

all: $(TEST)
	@./$(TEST)

clean:
	@rm -f $(TEST) *.o *.log *.dat
